package com.diorsunion.hedge.io;

import com.diorsunion.hedge.common.ConnectionStatus;
import com.diorsunion.hedge.common.ServiceResult;

import java.util.Set;

/**
 * Created by harley-dog on 2016/5/17.
 */
public interface IOServer {
    ServiceResult<ConnectionStatus> status();
    ServiceResult<ConnectionStatus> start(int port);
    void write(Message message);
    void write(String clientId,Message message);
    ServiceResult stop();
    Set<Remoter> allRemoters();
    Remoter getRemoter(String clientId);
}
